home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19941221-19950208
/
000310_news@columbia.edu_Sat Jan 28 19:16:45 1995.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA05194
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Sat, 28 Jan 1995 16:06:02 -0500
Received: by apakabar.cc.columbia.edu id AA02347
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Sat, 28 Jan 1995 16:06:00 -0500
Path: news.columbia.edu!panix!zip.eecs.umich.edu!newsxfer.itd.umich.edu!gatech!swiss.ans.net!newstf01.news.aol.com!newsbf02.news.aol.com!not-for-mail
From: drakepr@aol.com (DrakePR)
Newsgroups: comp.protocols.kermit.misc
Subject: RE: C-Kermit Development (global vars)
Date: 28 Jan 1995 14:16:45 -0500
Organization: America Online, Inc. (1-800-827-6364)
Lines: 32
Sender: root@newsbf02.news.aol.com
Message-Id: <3ge56t$28f@newsbf02.news.aol.com>
Reply-To: drakepr@aol.com (DrakePR)
Nntp-Posting-Host: newsbf02.mail.aol.com
Apparently-To: kermit.misc@watsun.cc.columbia.edu
>Just like in any C program, any variable that you declare outside of
>a function is global to the entire program unless you declare it >static.
>
>However, I would recommend that you declare the vars in the module
>closest in association with the use of the vars.
>Might I ask what modifications you are making to the ck code?
Thanks for the reply -
I have plowed my way through the code and now have the new version in
test. (I ended up declaring the vars outside main in ckcmai
and then declairing them as external in the other mods)
My only remaining problem is one that I need my vars to live on after the
user passes in uses the command mode (user interface.....
ie When I drop to the C-kermit> prompt then move back to connect mode all
my vars are reinitiated.
This is refered to in the Program Logic manual only they refer to them
as group 1 and group 2 fuctions.
At Last to my question:
Using the nomenclature of the Program Logic Manual I need to maintain my
vars when moving from group 1 fuctions to group 2 fuctions. How I do
this?? :)
This version keeps a copy of the current terminal screen in memory, and a
tool or two to use that screen.
thanks,
paul